package com.hyz.approval.service;

import com.hyz.approval.pojo.Approval;

/**
 * @author HGD
 * @date 2022/9/29 16:59
 */
public interface ApprovalService {
    /**
     * 根据申请id获取到对应的审批
     *
     * @param id 申请id
     * @return 审批
     */
    Approval getApprovalById(Long id);

    /**
     * 创建审批
     *
     * @param approval 审批
     * @return 审批
     */
    Approval insertApproval(Approval approval);

    /**
     * 修改审批
     *
     * @param approval 审批
     * @return 审批
     */
    Approval updateApproval(Approval approval);
}
